package cn.chencaiju.day09.oop;

import javafx.scene.paint.Color;

public class Fruit {
	private String name;
	private Color color;
	
	public Fruit(String name, Color color) {
		super();
		this.name = name;
		this.color = color;
	}
	public Fruit() {
		super();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Color getColor() {
		return color;
	}
	public void setColor(Color color) {
		this.color = color;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Fruit [name=");
		builder.append(name);
		builder.append(", color=");
		builder.append(color);
		builder.append("]");
		return builder.toString();
	}
	
}
